<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <script type="text/javascript" src="js/vue.js"></script>
</head>
<body>
<div id="sssss">
<img src="图片切换/images/logo.png" v-show="age>18&&age<20"/>
    <hr>
    <!--v-show通过style中disable来控制标签的显示和隐藏   v-if:通过删除和创建标签来控制-->
    <img src="图片切换/images/01.jpg" v-if="age>18&&age<22"/>
    <button @click="fun">点击</button>
</div>
</body>
<script>
    let sssss=new Vue({
        el:"#sssss",
        data:{
            age:18
        },
        methods:{
            fun(){
                this.age++
            }
        }
    })
</script>
</html>